package com.twang.stock.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 *同花顺热度榜单
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ThsHotStock implements Serializable {

    /**
     * order
     */
    @JSONField(name = "order")
    private int  order;

    /**
     * code
     */
    @JSONField(name = "code")
    private String  code;

    /**
     * name
     */
    @JSONField(name = "name")
    private String  name;

    /**
     * 热度
     */
    @JSONField(name = "rate")
    private BigDecimal  rate;

    /**
     * market
     */
    @JSONField(name = "market")
    private String  market;

    /**
     * hot_rank_chg
     */
    @JSONField(name = "hot_rank_chg")
    private String  hotRankChg;


    @JSONField(name = "tag")
    private ThsHotStockTag  tag;

    //涨跌幅
    private BigDecimal zhangdie;

    /**
     * 市场印象
     */
    private List<ThsGeGuReZDianSustainTags> sustainTags;

    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class ThsHotStockTag{
        /**
         * 热点
         */
        @JSONField(name = "concept_tag")
        private List<String> concepttag;

        /**
         *走势标签
         */
        @JSONField(name = "popularity_tag")
        private String popularityTag;

    }

}
